top DIV element should have class attribuyte set to dhtmlxTree
some attributes of top DIV element will define tree specific properties
setImagePath - set path to images used by tree
id - name of javascript variable referenced to tree object
Initilize from list
Root
Child1
Child 1-1
Child2
BoldItalic
Root
Child1
Child 1-1
Child2
BoldItalic
Root
Child1
Child 1-1
Child2
BoldItalic
Initialize from inline XML structure
It is possible to use standard dhtmlxTree XML structure enclosed in XMP
tag inside DIV element which is tree container.
For more details about dhtmlxTree XML structure see User Guide
< /xmp>
Initialize from HTML using script command
It is possible to convert existing html structure with script command
Root
Child1
Child 1-1
Child2
BoldItalic
//1st parameter is id of DIV element to initialize tree from.
var myTree = dhtmlXTreeFromHTML('listBox');